#include "head.h"

typedef enum{
	REGISTER = 1,
	LOGIN,
	LOGOUT
}Button;

typedef struct logTrain_s{
    int length;
    char data[1000];
}logTrain_t;

bool is_valid_button(int value);
Button get_button_input();
int client_entrance(int sockfd);
int client_register(int sockfd);
int client_login(int sockfd);
int client_logout(int sockfd);
int send_train(int sockfd, char *buf);
int recv_train(int sockfd, char *buf);
int haxi(const char *file,char *buf);

